package com.windy.kafka.trace.producer;

import org.apache.kafka.clients.producer.ProducerRecord;
import org.apache.kafka.common.header.Headers;

/**
 * Created by liyufeng on 2022/3/26
 */
public class DefaultMessageSendProcessor implements MessageSendProcessor {

    @Override
    public void beforeProcessMessage(ProducerRecord record) {
        Headers headers = record.headers();
        headers.add("x-trace-id", "test".getBytes());
    }

    @Override
    public void afterProcessorMessage(ProducerRecord record) {

    }
}
